 <h2>Liste des annonces</h2> 
<a href="#" class="searchadvert">&nbsp;</a>

<table id="rounded-corner" summary="2007 Major IT Companies' Profit">
    <thead>
        <tr>
            <th scope="col" class="rounded">Référence n°</th>
            <th scope="col" class="rounded">Paramètres de connexion</th>
            <th scope="col" class="rounded">Millesime</th>
            <th scope="col" class="rounded">Version</th>
            <th scope="col" class="rounded">Date de saisie</th>
            
            <th scope="col" class="rounded-q4">Supprimer <input type="checkbox" name="delAll" id="delAll" /></th>
        </tr>
    </thead>
    <tbody>
        {foreach $annonce as $annonceItem}
            
            <tr>
                <td>{$annonceItem->Occas_Reference |explode}</td>
                <td>
                    {if isset($annonceItem->IdOccasion)}
                        {if isset($annonceItem->IdOccasion)}
                            <a href="{jurl 'annonce~BoAnnonce:previsualiser',array('idOccasion'=>$annonceItem->IdOccasion)}">
                        {/if}
                        {$annonceItem->Vendeur_Nom} {$annonceItem->Vendeur_Naissance} {$annonceItem->Occas_NumImmatricul} 
                            </a>
                    {else}
                        {$annonceItem->Vendeur_Nom} {$annonceItem->Vendeur_Naissance} {$annonceItem->Occas_NumImmatricul}
                    {/if}
                    
                    {if $annonceItem->Occas_Valide}<u>{if $annonceItem->Occas_Valide == 'supprimee'}(Supprimée){elseif $annonceItem->Occas_Valide == 'archivee'}(Archivée){else}({$annonceItem->Occas_Valide}){/if}</u>{else}{/if}
                </td>
               
                <td>{$annonceItem->Occas_Millesime}</td>
                 <td>{$annonceItem->Occas_Version}</td>
                <td>{$annonceItem->Occas_DateSaisie}</td>
                                              
                <td>{if $annonceItem->Occas_Valide != 'supprimee'}<input type="checkbox" name="suprime_annonce" class="supprime_annonce" value="{$annonceItem->IdOccasion}"/>{/if}</td>
            </tr>
        {/foreach}
    </tbody>
</table>
<a href="{jurl 'annonce~BoAnnonce:choixFormule'}" class="bt_green"><span class="bt_green_lft"></span><strong>Ajouter</strong><span class="bt_green_r"></span></a>
<a href="#" class="bt_green" id="delAnnonce"><span class="bt_green_lft"></span><strong>Supprimer</strong><span class="bt_green_r"></span></a>
<!--
<form action="{*jurl 'annonce~BoAnnonce:supprimer'*}" method="post" id="desactiverAnnonce">
    <input type="hidden" name="tabId" id="tabId" value="" />
</form>
-->
<div class="pagination">
    <!-- begin Pagination -->
        {if $oNavBar->iNbPages > 1}
        <div class="navigPage clearfix">
            {if $oNavBar->iPrevPage > 0}
                <a title="précédent" href="{jurl 'annonce~BoAnnonce:index', array('iCurrentPage' => $oNavBar->iPrevPage)}"> < </a>&nbsp;
            {/if}

            {foreach $oNavBar->tiPages as $iPage}
                <a  title="page {$iPage}" href="{jurl 'annonce~BoAnnonce:index', array('iCurrentPage' => $iPage)}" 
                    {if $iPage == $oNavBar->iCurrPage} class="current" {/if}
                >{$iPage}</a>&nbsp;|
            {/foreach}

            {if $oNavBar->iShowLast > 0}
                …&nbsp;|
                <a title="page {$oNavBar->iNbPages}" href="{jurl 'annonce~BoAnnonce:index', array('iCurrentPage' => $oNavBar->iNbPages)}">{$oNavBar->iNbPages}</a>&nbsp;
            {/if}

            {if $oNavBar->iNbPages > $oNavBar->iCurrPage}
                <a title="suivant" href="{jurl 'annonce~BoAnnonce:index', array('iCurrentPage' => $oNavBar->iNextPage)}"> > </a>
            {/if}

        </div>
        {/if}
    <!-- end Pagination -->
</div> 